﻿using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections;

public class CloseTipButton : MonoBehaviour {


	public MainController controller;

	void Start(){

		Button btn = GetComponent<Button> ();
		btn.onClick.AddListener (delegate() {
			this.OnClick();
		});

	}

	public void OnClick() {

		controller.CloseTip ();

	}


}
